import request from '@/utils/request'
import Qs from 'qs'
// 主页 利润,用户量,订单量,设备量
export function getList (params) {
  return request({
    url: '/api/index/admin/queryStatistical',
    method: 'post',
    params
  })
}

//消费订单收入统计
export function queryOrderCashBydate (params) {
  return request({
    params,
    url: '/api/index/admin/queryOrderCashBydate',
    method: 'post'
  })
}


// 消费利润统计
export function queryProfit (params) {
  return request({
    params,
    url: '/api/index/admin/queryProfit',
    method: 'post'
  })
}


